#include<stdio.h>
int main()
{
    int num, sum = 0, cnt = 0;
    scanf("%d", &num);

    while(num != 0)
    {
        int digit = num % 10;
        num /= 10;
        sum += digit;
        cnt++;
    }

    printf("%d %d", cnt, sum);


    return 0;
}
